package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.domain.User;

import java.util.Map;

public interface UserDao {

    User findByUsername(String username);

    Page<User> findCondition(String queryString);

    void add(User user);

    void delete(Integer id);

    void insertUserAndRole(Map<String, Integer> map);
}
